﻿@if
    (Request.Cookies.AllKeys.Contains("student"))
{
    <text>Welcome <strong>@Request.Cookies["student"].Value.Split('-')[1]</strong>! <a data-role="button" class="no-Ajax" data-transition="flip"  style="float:right" href="@Url.Action("StudentLogOff", "Account")">
        Log off</a>
    </text>
}
else if
    (Request.Cookies.AllKeys.Contains("faculty"))
{
    <text>Welcome <strong>@Request.Cookies["faculty"].Value.Split('-')[1]</strong>! <a data-role="button" class="no-Ajax" data-transition="flip"  style="float:right" href="@Url.Action("FacultyLogOff", "Account")">
        Log off</a>
    </text>
}